package com.tddexample;

import java.util.Random;

import com.google.inject.Inject;

public class RandomNumberGenerator implements INumberGenerator {

	@Inject
	Random random;

	private final int MAX_NUMBER = 100;

	public int[] getNumbers(int noNumbers) {
		int[] numbers = new int[noNumbers];
		for (int i = 0; i < numbers.length; i++) {
			numbers[i] = this.random.nextInt(MAX_NUMBER);
		}
		return numbers;
	}

}
